<?php
namespace app\model;

use think\Model;

class User extends Model

{
    protected $table = "user";

    public function login($user)
    {
        return $this->where($user)
                    ->find();
    }
}
?>